package cn.jy.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
//@EnableCaching // 开启spring默认缓存
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true) // 开启spring security的注解
public class Boot025SecurityAthrizeApplication {

    public static void main(String[] args) {
        SpringApplication.run(Boot025SecurityAthrizeApplication.class, args);
    }

}
